doctype html
html(lang='zh-cn')
    head
        //- 网页编码
        meta(charset='utf-8')
        //- bootstrap 移动设备窗口禁用缩放设置
        meta(name='viewport' content='width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no,maximum-scale=1.0')
        //- IE默认为edge浏览器
        meta(http-equiv='X-UA-Compatible' content='IE=edge')
        //- 设置360，腾讯等双核浏览器的默认渲染器为webkit
        meta(name='renderer' content='webkit')
        title {$site_info.site_name|default=''} {:lang('ADMIN_CENTER')}
        //- 引入公共CSS样式
        link(href='__TMPL__/public/assets/css/bootstrap.min.css', rel='stylesheet')
        link(href='__STATIC__/font-awesome/css/font-awesome.min.css', rel='stylesheet')
        link(href='__TMPL__/public/assets/css/boot4_admin.css', rel='stylesheet')
        //- 内部样式块
        block(name="head-style")
        script.
            //全局变量
            var GV = {
                HOST: "{$_SERVER['HTTP_HOST']|default=''}",
                ROOT: "__ROOT__/",
                WEB_ROOT: "__WEB_ROOT__/",
                JS_ROOT: "static/js/",
                APP: '{$Request.module}'/*当前应用名*/
            };
        script(src='__TMPL__/public/assets/js/jquery-3.4.1.js')
        script(src='__TMPL__/public/assets/js/bootstrap.bundle.min.js')
        script(src='__STATIC__/js/wind.js')
        script.
            Wind.css('artDialog');
            Wind.css('layer');
            $(function () {
                $("[data-toggle='tooltip']").tooltip({
                    container: 'body',
                    html: true,
                });
                $("li.dropdown").hover(function () {
                    $(this).addClass("open");
                }, function () {
                    $(this).removeClass("open");
                });
            });
        //- 头部脚本
        block(name="head-script")
        //- 头部钩子
        block(name="head-hook")
    body
        block(name="main")
        block(name="bottom-source")
            script(src='__STATIC__/js/admin.js')
            script(src='__TMPL__/public/assets/js/adminindex.min.js')
        block(name="bottom-script")
        //- 头部钩子
        block(name="bottom-hook")
